interface CouponProps {
  item: any,
  use: boolean;
  onClick?(e): void
} 

Component<any, CouponProps, any>({
  data: {},
  props: {
    item:{

    },
    use:false
  },
  didMount() {},
  didUpdate() {},
  didUnmount() {},
  methods: {
    goCouponDetail(){
      const item:any  = this.props.item;

      my.navigateTo({
        url:`/pages/coupon-detail/coupon-detail?coupon_id=${item.coupon_id}&id=${item.coupon_received_id}`
      })
    },
    handleUse(){
      this.props.onClick && this.props.onClick({item:this.props.item})
      
    }
  },
});
